//
//  UseData.h
//  QuickCure
//
//  Created by MootYue on 16/5/6.
//  Copyright © 2016年 ayumi. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface UserData : NSObject
//用户编号
@property (nonatomic, copy) NSString *user_id;

//用户姓名
@property (nonatomic, copy) NSString *true_name;

//用户身份证编号
@property (nonatomic, copy) NSString *card_number;

//是否登录
@property (nonatomic,assign) BOOL isLogin;

//身高
@property (nonatomic,copy) NSString *height;

//体重
@property (nonatomic,copy) NSString *weight;

//省份
@property (nonatomic,copy) NSString *address;

//手机号
@property (nonatomic,copy) NSString *mobile_number;

//头像
@property (nonatomic,copy) NSString *head_photo;


//用字典给UserData赋值 代替YYmodel的方法
-(UserData *)setDataFromDict:(NSDictionary *)dict;

//单例模式
+(instancetype)sharedInstance;

//保存用户信息到沙盒
-(void)saveUserInfoSanBox:(UserData *)userData;

//从沙盒中加载用户信息
-(void)loadUserInfoFromSanBox;

//退出时清除用户信息
-(void)cleanUserInfo;

@end
